import axios from "../index.js";
// 应急-客服服务-停电信息发布
// 列表
export const getListApi = (data) => {
  return axios.request({
    url: "/emergency/emergencyOutageInformation/listPage",
    method: "post",
    data: data
  });
};
// 根据响应命令单查询灾情信息
export const emergencyOutagelnformationApi = (data) => {
  return axios.request({
    url: "/emergency/emergencyOutageInformation/getInfoByEventIds",
    method: "get",
    data: data
  });
};

// 获取停电台区数据下拉项
// export const getTqOptionsApi = (data) => {
//   return axios.request({
//     url: "/emergency/emergencyOutageInformation/getTq",
//     method: "get",
//     data: data
//   })
// }

// 获取停电重要用户数据下拉项
// export const getZyyhOptionsApi = (data) => {
//   return axios.request({
//     url: "/emergency/emergencyOutageInformation/getZyyh",
//     method: "get",
//     data: data
//   })
// }

// 保存
export const submitApi = (data) => {
  return axios.request({
    url: "/emergency/emergencyOutageInformation/save",
    method: "post",
    data: data
  });
};

// 获取线路数据
export const getLineOptionsApi = (data) => {
  return axios.request({
    url: "/emergency/emergencyOutageInformation/getCircuitData",
    method: "get",
    data: data
  });
};

